package com.erlinyou.im.service.group;

import java.util.List;
import java.util.Map;

import com.erlinyou.base.service.BaseService;
import com.erlinyou.im.model.group.Group;
import com.erlinyou.im.model.group.Groupmembers;

public interface IGroupMemService extends BaseService<Groupmembers, Integer>{

	List<Groupmembers> findByGroupid(int rid);
	Groupmembers findByGroupidAndUserid(int rid, Long userid);
	
	boolean deleteByUseridByGroupid(Long userid, Integer groupid)throws RuntimeException;

	boolean deletegro(Integer groupid,Long userId) throws RuntimeException;


	boolean saveImgAndDel(List<Groupmembers> groupmembers, Group group1);


	boolean deleteByUseridByGroupid(Long userId, Group group1);
	
	List<Map<String,Object>> searchByUserName(Long userId,String mohu);
	
	List<Map<String, Object>> searchByGroupName(Long userId, String nickName);

}
